/**
 * Copyright &copy; 2018-2018 <a href="#">聚成科技</a> All rights reserved.
 */
package com.jckj.core.vos;

import com.jckj.core.validator.groups.Add;
import com.jckj.core.validator.groups.Delete;
import com.jckj.core.validator.groups.Edit;
import com.jckj.core.validator.groups.View;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * </p>
 *
 * @author 刘志远
 * @date 18-3-5
 */
public class AgriProductVo {

    @NotNull(message = "请选择要操作的农产品", groups = {Edit.class, Delete.class, View.class})
    private String id;

    @NotNull(message = "请填写产品编号", groups = {Add.class, Edit.class})
    @Length(min = 1, max = 20, message = "产品编号长度为1~20个字符", groups = {Add.class, Edit.class})
    private String proCode;

    @NotNull(message = "请填写产品名称", groups = {Add.class, Edit.class})
    @Length(min = 1, max = 50, message = "产品名称长度为１~50个字符",groups = {Add.class, Edit.class})
    private String proName;

    @NotNull(message = "请选择产品类型", groups = {Add.class, Edit.class})
    @Length(min = 1, max = 32, message = "产品类型长度为0~255字符", groups = {Add.class, Edit.class})
    private String proType;

    @Length(min = 0, max = 255, message = "备注长度为０~255字符", groups = {Add.class, Edit.class})
    private String remark;

    @NotNull(message = "请填写排序位置", groups = {Edit.class, Add.class})
    private Integer order;


    public String getProCode() {
        return proCode;
    }

    public void setProCode(String proCode) {
        this.proCode = proCode;
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public String getProType() {
        return proType;
    }

    public void setProType(String proType) {
        this.proType = proType;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getOrder() {
        return order;
    }

    public void setOrder(Integer order) {
        this.order = order;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}
